<?php

function showbook($bookname)
{

    $sql='select * from books where bookname="'.$bookname.'"';
    $_result=$_mysql->query($sql);
    $_assoc=$_result->fetch_assoc();
    return $_assoc;
}

?>